package lp.xian.production.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.domain.Client;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 退货单对象 lp_return_info
 *
 * @author ruoyi
 * @date 2023-07-19
 */
@Data
public class ReturnInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退货id */
    private Integer returnId;

    /** 退货编号 */
    @Excel(name = "退货编号")
    private String returnOrderNo;

    @Excel(name = "退货原因")
    private Integer returnContent;

    /** 退货名称 */
    @Excel(name = "退货名称")
    private String returnName;

    /** 客户id */
    @Excel(name = "客户id")
    private Integer clientId;

    /** 退货数量 */
    @Excel(name = "退货数量")
    private Integer clientNum;

    /** 退款金额 */
    @Excel(name = "退款金额")
    private BigDecimal marketPrice;

    /** 销售单位 */
    @Excel(name = "销售单位")
    private String marketUnit;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer auditStatus;

    /** 审批意见 */
    @Excel(name = "审批意见")
    private String approverOpinion;

    /** 审批时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审批时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approverTime;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approverPerson;

    private Client client;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("returnId", getReturnId())
                .append("returnOrderNo", getReturnOrderNo())
                .append("returnName", getReturnName())
                .append("clientId", getClientId())
                .append("returnContent", getReturnContent())
                .append("clientNum", getClientNum())
                .append("marketPrice", getMarketPrice())
                .append("marketUnit", getMarketUnit())
                .append("auditStatus", getAuditStatus())
                .append("approverOpinion", getApproverOpinion())
                .append("approverTime", getApproverTime())
                .append("approverPerson", getApproverPerson())
                .append("remark", getRemark())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
